package com.cdu.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: easy-help-v2
 * @description:
 * @author: hanabi
 * @create: 2022-05-17 10:00
 **/
@TableName("sys_task")
@Data
public class Task extends BasePO implements Serializable {
    private static final long serialVersionUID = -5027700227459600245L;
    @TableField("name")
    private String name;

    @TableField("content")
    private String content;

    @TableField("remark")
    private String remark;

    @TableField("is_deal")
    private Integer isDeal;

    @TableField("reward")
    private Double reward;

    @TableField("deadline")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deadline;

    @TableField("is_urgent")
    private Integer isUrgent;

    @TableField("img_url")
    private String imgUrl;

    @TableField("receive_user_id")
    private String receiveUserId;

    @TableField("update_user_id")
    private String updateUserId;

}
